package com.ybkj.o2o.sales.common;

import java.util.List;


public class Result<T> {

  private boolean success;

  private String message;

  private List<T> data;

  private T result;

  public Result() {
    super();
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public List<T> getData() {
    return data;
  }

  public void setData(List<T> data) {
    this.data = data;
  }

  /**
   * 结果类型.
   */
  public Result(boolean success, String message) {
    super();
    this.success = success;
    this.message = message;
  }

  public T getResult() {
    return result;
  }

  public void setResult(T result) {
    this.result = result;
  }


}
